// 集装箱 -订单
import request from "@/utils/https/requests";
// 列表
export function containerList(data: any) {
  return request({
    url: "/container/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddContainer(data: any) {
  return request({
    url: "/container/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModContainer(data: any) {
  return request({
    url: `/container/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function containerDetail(id: string) {
  return request({
    url: `/container/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteContainer(id: string) {
  return request({
    url: `/container/postDelete/${id}`,
    method: "post",
  });
}

// 到港
export function containerArrivalAction(data: any) {
  return request({
    url: "/container/arrivalAction",
    method: "post",
    data,
  });
}
// 分配报关行
export function settingCustomsClearanceAction(data: any) {
  return request({
    url: "/container/settingCustomsClearanceAction",
    method: "post",
    data,
  });
}
// 配置仓库
export function settingWarehouseAction(data: any) {
  return request({
    url: "/container/settingWarehouseAction",
    method: "post",
    data,
  });
}
// 预约提柜
export function containerMakePickUpAction(data: any) {
  return request({
    url: "/container/makePickUpAction",
    method: "post",
    data,
  });
}

// 业务审批
export function containerAuditAction(data: any) {
  return request({
    url: "/container/auditAction",
    method: "post",
    data,
  });
}

